<?php
    $host = "localhost";
    $user = "root";
    $password = "zaqwsx";
    $db = "perakultur";
    
    $connection = mysql_connect($host, $user, $password) or die ("veritabani baglanma hatasi");
	$db_selected = mysql_select_db($db, $connection);
    
	if (!$db_selected) {
      die ('Hata : ' . mysql_error());
     }
     mysql_query("SET NAMES 'utf8'");
     mysql_query("SET CHARACTER SET utf8");
     mysql_query("SET COLLATION_CONNECTION = 'utf-8'");

?>